package com.qf.erp_system.sys.controller;

import com.qf.erp_system.common.json.JsonResult;
import com.qf.erp_system.common.pojo.sys.TimeFormat;
import com.qf.erp_system.sys.service.TimeFormatService;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import javax.annotation.Resource;
import java.util.List;

@RestController
@RequestMapping("/number")
public class TimeFormatController {
    @Resource
    private TimeFormatService timeFormatService;
    @GetMapping("/timeFormat")
    public JsonResult<List<TimeFormat>>listJsonResult(){
        List<TimeFormat> timeFormats = timeFormatService.listTimeFormat();
        return JsonResult.ok(timeFormats);
    }
}
